import request from '@/utils/request'

// 查询财务核心-凭证字列表
export function listFinVoucherWord(query) {
  return request({
    url: '/voucherWord/finVoucherWord/list',
    method: 'get',
    params: query
  })
}

// 查询财务核心-凭证字详细
export function getFinVoucherWord(id) {
  return request({
    url: '/voucherWord/finVoucherWord/' + id,
    method: 'get'
  })
}

// 保存财务核心-凭证字
export function saveFinVoucherWord(data) {
  return request({
    url: '/voucherWord/finVoucherWord/save',
    method: 'post',
    data: data
  })
}

// 凭证字 校验是否默认
export function checkWhetherDefault(data) {
  return request({
    url: '/voucherWord/finVoucherWord/checkWhetherDefault',
    method: 'post',
    data: data
  })
}

// 删除财务核心-凭证字
export function delFinVoucherWord(id) {
  return request({
    url: '/voucherWord/finVoucherWord/' + id,
    method: 'delete'
  })
}

// 导出财务核心-凭证字
export function exportFinVoucherWord(query) {
  return request({
    url: '/voucherWord/finVoucherWord/export',
    method: 'get',
    params: query
  })
}
